<html>
<head>
<title>Main.java</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.ln { color: rgb(0,0,0); font-weight: normal; font-style: normal; }
.s0 { color: rgb(0,0,128); font-weight: bold; }
.s1 { }
.s2 { color: rgb(128,128,128); font-style: italic; }
.s3 { color: rgb(0,128,0); font-weight: bold; }
</style>
</head>
<BODY BGCOLOR="#ffffff">
<TABLE CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#C0C0C0" >
<TR><TD><CENTER>
<FONT FACE="Arial, Helvetica" COLOR="#000000">
Main.java</FONT>
</center></TD></TR></TABLE>
<pre>

<a name="l1"><span class="s0">package </span><span class="s1">zadanie2; 
<a name="l2"> 
<a name="l3"></span><span class="s2">/** 
<a name="l4"> * Author: Daniel Michalski 
<a name="l5"> * Date: 28.02.13 
<a name="l6"> */</span><span class="s1"> 
<a name="l7"> 
<a name="l8"></span><span class="s0">public class </span><span class="s1">Main { 
<a name="l9">    </span><span class="s0">public static void </span><span class="s1">main(String[] args) { 
<a name="l10">        String slowa[] ={</span><span class="s3">&quot;jeden&quot;</span><span class="s1">, </span><span class="s3">&quot;jed&quot;</span><span class="s1">, </span><span class="s3">&quot;jede&quot;</span><span class="s1">, </span><span class="s3">&quot;cztery&quot;</span><span class="s1">, </span><span class="s3">&quot;piec&quot;</span><span class="s1">}; 
<a name="l11"> 
<a name="l12">        <a href="StringAnalizer.java.html">StringAnalizer</a> analizer = </span><span class="s0">new <a href="StringAnalizer.java.html">StringAnalizer</a></span><span class="s1">(slowa); 
<a name="l13"> 
<a name="l14">        </span><span class="s0">int </span><span class="s1">dlugoscslowa = analizer.obliczDl(); 
<a name="l15">        System.out.println(</span><span class="s3">&quot;Długosc slow to &quot; </span><span class="s1">+ dlugoscslowa); 
<a name="l16"> 
<a name="l17">        String poczatek = </span><span class="s3">&quot;jed&quot;</span><span class="s1">; 
<a name="l18"> 
<a name="l19">        </span><span class="s0">int </span><span class="s1">iloscSlowOPoczatku = analizer.iloscSlowOpocz(poczatek); 
<a name="l20">        System.out.println(</span><span class="s3">&quot;Ilosc slow o poczatku '&quot; </span><span class="s1">+ poczatek + </span><span class="s3">&quot;' &quot; </span><span class="s1">+ iloscSlowOPoczatku); 
<a name="l21">    } 
<a name="l22">} 
<a name="l23"></span></pre>
</body>
</html>